home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DUProjects / Graphics3D / Sources / Part.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.8 KB  |  61 lines  |  [TEXT/CWIE]

  1. //========================================================================================
  2. //    Release Version:    $ ODF 1 $
  3. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  4. //========================================================================================
  5.  
  6. #ifndef PART_H
  7. #define PART_H
  8.  
  9. //=======================================================================
  10. #ifndef DEFINES_K
  11. #include "Defines.k"
  12. #endif
  13.  
  14. // ----- Framework Includes -----
  15. #ifndef FWPART_H
  16. #include "FWPart.h"            // FW_CPart
  17. #endif
  18.  
  19. // ----- Foundation Layer -----
  20. #ifndef FWSTDDEF_H
  21. #include <FWStdDef.h>        // ?
  22. #endif
  23.  
  24. //=======================================================================
  25. const ODValueType    kAppleTEXTScrap = "Apple:OSType:Scrap:TEXT";
  26. const ODValueType    kAppleTEXTfile     = "Apple:OSType:FileType:TEXT";
  27.  
  28. //=======================================================================
  29. class FW_CPart;
  30. class FW_CString;
  31. class FW_CMenuBar;
  32. class FW_CMenuEvent;
  33. class FW_CPresentation;
  34. class CGraphics3DContent;
  35.  
  36. //=======================================================================
  37. class CGraphics3DPart : public FW_CPart {
  38. public:
  39.     FW_DECLARE_AUTO(CGraphics3DPart)
  40.     
  41.                         CGraphics3DPart(ODPart* odPart);
  42.     virtual             ~CGraphics3DPart();
  43. // overrides
  44. protected:
  45.     virtual FW_CContent* NewPartContent(Environment* ev);
  46.     virtual void         Initialize(Environment* ev);
  47.     virtual FW_CFrame*    NewFrame(Environment* ev,
  48.                                  ODFrame* odFrame,
  49.                                  FW_CPresentation* presentation,
  50.                                  FW_Boolean fromStorage);
  51.     virtual FW_Boolean    DoMenu(Environment* ev,
  52.                                const FW_CMenuEvent& theMenuEvent);
  53. // new members
  54. private:
  55.     FW_CPresentation*    fPresentation;
  56.     CGraphics3DContent*        fPartContent;
  57. };
  58.  
  59. //=======================================================================
  60. #endif
  61.